x86/mm: When mem event automatically promotes access rights, let other subsystems...
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Tue, 6 Dec 2011 21:16:56 +0000 (21:16 +0000)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Tue, 6 Dec 2011 21:16:56 +0000 (21:16 +0000)
commitcddf900b88218075ae1b116cbe9937b621a9903a
tree35dbbaf64fb034c4cd811b12b15ddab9d9b6d84d
parent5cd6d1bc78ed69f543ef608adf577d3b76983cb8
x86/mm: When mem event automatically promotes access rights, let other subsystems know

The mem event fault handler in the p2m can automatically promote the access
rights of a p2m entry. In those scenarios, vcpu's are not paused and they will
immediately retry the faulting instructions. This will generate a second fault
if the underlying entry type requires so (paging, unsharing, pod, etc).
Collapse the two faults into a single one.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h